package com.asion.qkan.ui.contract;

import com.asion.qkan.entry.AllContentBean;
import com.asion.qkan.entry.HomeBean;
import com.asion.qkan.ui.model.BaseModel;
import com.asion.qkan.ui.presenter.BasePresenter;
import com.asion.qkan.ui.view.BaseView;

/**
 * Created by HCJ on 2016/10/16.
 */

public interface AllContentContract {
    interface Model extends BaseModel {

        void getAllContentDatas(String id,OnAllContentListener onAllContentListener);
    }

    interface View extends BaseView<AllContentBean> {
        //定义view中需要的接口
        //baseView<T> 可指定你要用的Entry返回数据
    }
    abstract static class Presenter extends BasePresenter<View,Model> {
        //定义presenter需要的方法
        public abstract void setAllContentDatas(String id);
    }

    interface OnAllContentListener{
        //写实体类
        void onAllContentSuccess(AllContentBean allContentBean);
        void onAllContentError(Throwable t);
    }
    interface OnContentItemClickListener{
        void onContentItemClick(int position,AllContentBean.DataBean.ComicsBean comicsBean);
    }
}
